using System;
using System.Globalization;
namespace Net35.Xrm.Sdk
{
	public static class FieldPermissionType
	{
		public const int NotAllowed = 0;
		public const int Allowed = 4;
		public static void Validate(int value)
		{
			if (value != 4 && value != 0)
			{
				throw new ArgumentOutOfRangeException("value", string.Format(CultureInfo.InvariantCulture, "Value {0} is not a valid FieldPermissionType", new object[]
				{
					value
				}));
			}
		}
	}
}
